package com.jxdinfo.hussar.example.common.schedulingtask.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxdinfo.hussar.example.common.schedulingtask.model.MdVendor;
import com.jxdinfo.hussar.example.common.schedulingtask.vo.MdUnitMeasureVO;
import com.jxdinfo.hussar.example.common.schedulingtask.vo.MdVendorVO;
import com.jxdinfo.hussar.support.datasource.annotations.HussarDs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 供应商表 Mapper 接口
 * </p>
 *
 * @author 乔镔
 * @since 2024-04-03
 */
@Mapper
@Repository("com.jxdinfo.hussar.example.common.schedulingtask.dao.MdVendorMapper")
public interface MdVendorMapper extends BaseMapper<MdVendor> {

    LocalDateTime selectMaxScheduleDate();

    @HussarDs("U9C")
    List<MdVendorVO> selectMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdVendorVO> selectUpdateMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdVendorVO> selectAllClient();
}
